static short inputRefNum,outputRefNum; // refNums for serial drivers
static char outputIsOpen,inputIsOpen,doAsynchReceives; // flags used to keep track of whether the input/output drivers are open, and whether we're supposed to keep posting new asynch receives
static Ptr serialInputBufferPtr,serialOutputBufferPtr,serialPacketBuffer; // pointers to our serial buffers
static ParamBlockRec myWritePB,myReadPB; // I/O parameter blocks used for our asynch calls
static long numBytesInPacketBuff; // guess what this is used to keep track of....
static short serialSpeed,serialPort; // used to keep track of speed of port and *which* port we're using
static char doXOnXOff,doHH; // flags to keep track of flow control techniques